package com.ebelter.scaleblesdk.ble.bluetooth.impl;

import com.ebelter.scaleblesdk.ble.model.FatResult;
import com.ebelter.scaleblesdk.model.MeasureResult;
import com.ebelter.scaleblesdk.model.OfflineMeasureResult;
import com.ebelter.scaleblesdk.model.Weight;

/**
 * 测量结果接口
 * Created by pan on 2017/11/3.
 */

public interface IMeasureResultCallback {

    /**
     * 脂肪测量结果数据
     * @param result
     */
    public void onReceiveMeasureResult(MeasureResult result);

    /**
     * 体重测量信息
     * @param weight
     */
    public void onWeightMeasureResult(Weight weight);

    /**
     * 体重超载
     */
    public void onWeightOverLoad();

    /**
     * 接收到测量历史数据
     * @param result
     */
    public void onReceiveHistoryRecord(OfflineMeasureResult result);

    /**
     * 测脂出错
     * @param type 出错类型
     */
    public void onFatMeasureError(int type);

    /**
     * 接收到历史记录上发完毕
     */
    public void onHistoryUploadDone();


}
